package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaoxiaokui
 * @email wspjava@163.com
 * @date 2020-05-18 16:25:36
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuById(List<Long> asList);
    
    /**
     * @Description: 找到catelogId的完整路径
     * @Param: [catelogId]
     * @return: java.lang.Long[]
     * @Author: xiaoxiaokui
     * @Date: 2020/8/6
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

